﻿using System;
using System.Net;

namespace NATP2P.UDPNat
{

    enum MesgType
    {
        BindingConnect = 0x01,
        BindingConnected = 0x02,//
        BindingDisconnect = 0x03,//
        BindingAccpt = 0x04,
        BindingReject = 0x05,//
        BindingListen=0x06,
    }
    /// <summary>
    /// Fire when stat of connection changed
    /// </summary>
    public class StateChangedEventArgs : EventArgs
    {
        /// <summary>
        /// get right remotr endpoint
        /// </summary>
        public IPEndPoint RemoteEndPoint { get; set; }

        /// <summary>
        /// publisher event  for statring connection
        /// </summary>
        /// <param name="remoteEndPoint"></param>
        public StateChangedEventArgs(IPEndPoint remoteEndPoint)
        {
            this.RemoteEndPoint = remoteEndPoint;
        }
    }

}
